package com.aracky.system.model.entity;

import com.aracky.common.entitybase.BaseCommonEntity;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 表头行信息表
 * </p>
 *
 * @author zengzhiping
 * @since 2022-07-18 10:05:44
 */
@Getter
@Setter
@TableName("sys_table_line")
@ApiModel(value = "SysTableLine对象", description = "表头行信息表")
public class SysTableLine extends BaseCommonEntity {

    @ApiModelProperty("行ID")
    @TableId(value = "line_id", type = IdType.AUTO)
    private Long lineId;

    @ApiModelProperty("列名")
    @TableField("col_name")
    private String colName;

    @ApiModelProperty("列名4集合")
    @TableField("col_name4_list")
    private String colName4List;

    @ApiModelProperty("列中文名")
    @TableField("col_text")
    private String colText;

    @ApiModelProperty("列类型")
    @TableField("col_type")
    private String colType;

    @ApiModelProperty("列宽")
    @TableField("col_width")
    private Integer colWidth;

    @ApiModelProperty("栅格数")
    @TableField("span_count")
    private Integer spanCount;

    @ApiModelProperty("序列")
    @TableField("seq")
    private String seq;

    @ApiModelProperty("是否必填(1是0否)")
    @TableField("`require`")
    private Boolean require;

    @TableField("print")
    private Boolean print;


    @ApiModelProperty("是否是查询条件(1是0否)")
    @TableField("find")
    private Boolean find;

    @ApiModelProperty("表头id")
    @TableField("head_id")
    private Long headId;

    @ApiModelProperty("删除标志（1代表存在 0代表删除）")
    @TableField("del_flag")
    @TableLogic(delval = "0",value = "1")
    private Boolean delFlag;


    @ApiModelProperty("是否编辑(1是0否)")
    @TableField("allow_edit")
    private Boolean allowEdit;

    @ApiModelProperty("默认显示(1是0否)")
    @TableField("default_display")
    private Boolean defaultDisplay;

    @ApiModelProperty("查询规则")
    @TableField("find_rules")
    private String findRules;

    @ApiModelProperty("附加说明")
    @TableField("additional_Info")
    private String additionalInfo;


    @ApiModelProperty("允许编辑的条件值")
    @TableField("allow_edit_condition_value")
    private String allowEditConditionValue;

    @ApiModelProperty("默认值")
    @TableField("default_value")
    private String defaultValue;

    @ApiModelProperty("说明")
    @TableField("instruction")
    private String instruction;

    @ApiModelProperty("是否当前列合并")
    private Boolean isMerge;

}
